# coding:utf-8

import re

import requests

# 1. 爬取
url = "https://36kr.com"
headers = {
    "User-Agent": "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Mobile Safari/537.36",
    "cookie": "acw_tc=2760825e16045423406356537e46dceabadfac2cfa678509c2942197b967b9; acw_sc__v2=5fa35f8494c90bf041c06e05ea9b4486a9c8e9d0; sajssdk_2015_cross_new_user=1; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%22175962de7d86-0f88e0f0f5f1f5-326a7207-1764000-175962de7d9bd4%22%2C%22%24device_id%22%3A%22175962de7d86-0f88e0f0f5f1f5-326a7207-1764000-175962de7d9bd4%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_referrer%22%3A%22%22%2C%22%24latest_referrer_host%22%3A%22%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%7D%7D; Hm_lvt_1684191ccae0314c6254306a8333d090=1604401424,1604481306,1604539542; Hm_lvt_713123c60a0e86982326bae1a51083e1=1604401424,1604481306,1604539542; Hm_lpvt_1684191ccae0314c6254306a8333d090=1604542405; SERVERID=6eb0a1872728d69c244094a636b7db3b|1604542404|1604542343; Hm_lpvt_713123c60a0e86982326bae1a51083e1=1604542405"
}
r = requests.get(url=url, headers=headers)

# 2. 得到响应的内容
# r.encoding = "utf-8"
html = r.text
# html = r.content.decode()
# 测试提取的页面数据
print(html)

# 3. 通过正则表达式提取需要的数据
# 下面的div标签是通过浏览器赋值过来的，这样可以先使用re模块对如下的标签进行测试，如果提取数据成功的话，再将下面代码屏蔽
# 从而用requests下载的代码
# html = """<div class="flow-list"><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/953792164001672" target="_blank" rel=""><span class="item-feed">科技</span><img class="scaleBig" src="https://img.36krcdn.com/20201104/v2_f190e3c2303142a18dc892e85a385fb5_img_png?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="“火星自治”，马斯克这次是认真的吗？"></a><a class="item-info clearfloat" href="/p/953792164001672" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">“火星自治”，马斯克这次是认真的吗？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">脑极体</span><span class="bar-time"><i class="icon"></i>5分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954610654345602" target="_blank" rel=""><span class="item-feed">科技</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_356ee2a1e6574943bfa9f3cc22474754_img_jpeg?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="苹果再开发布会，Apple Silicon会有多强大？"></a><a class="item-info clearfloat" href="/p/954610654345602" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">苹果再开发布会，Apple Silicon会有多强大？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">DoNews</span><span class="bar-time"><i class="icon"></i>13分钟前</span></div></a></div></div><div class="item-wrapper"><a href="https://adx.36kr.com/api/ad/click?sign=ce7da3fde6d02c8c4b26323c3551e0ce&amp;param.redirectUrl=aHR0cHM6Ly8zNmtyLmNvbS9wLzk0NjUxMDU3MjUzMTMzNQ&amp;param.adsdk=QtXPwRTtZPUzaRO6qKIIUifWetkf8BJdHOXuREC7pucAhbu29x4NFgJpkbtwP0vPDSo3bp1bSz482cIQNd5jHQ" sensors_operate_type="click" sensors_position_id="805" sensors_media_content_id="QtXPwRTtZPUzaRO6qKIIUifWetkf8BJdHOXuREC7pucAhbu29x4NFgJpkbtwP0vPDSo3bp1bSz482cIQNd5jHQ" class="home-ad-flow-information" target="_blank" rel="noopener noreferrer nofollow" data-id="805"><div class="pic"><span class="flag">商业策划</span><img class="" src="https://img.36krcdn.com/20201102/v2_38f9457b418a43319c01eccebc697b51_img_jpg" alt="36氪"></div><div class="info"><div class="title weight-bold">从白领到“打工人“，35岁以后出路在何方？</div></div></a></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954625463219847" target="_blank" rel=""><span class="item-feed">推荐</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_6e454f6fc83f4ec6b2b1c190a969b5db_img_jpg" alt="中概股3分钟 | 小鹏大涨23%，蔚来进中概股市值前十"></a><a class="item-info clearfloat" href="/p/954625463219847" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">中概股3分钟 | 小鹏大涨23%，蔚来进中概股市值前十</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">富途证券</span><span class="bar-time"><i class="icon"></i>17分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954593550072194" target="_blank" rel=""><span class="item-feed">汽车</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_b6db693d81184a95b9c59d635cad3824_img_jpg?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="“安全”是造车新势力的命门吗？"></a><a class="item-info clearfloat" href="/p/954593550072194" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">“安全”是造车新势力的命门吗？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">商业数据派</span><span class="bar-time"><i class="icon"></i>17分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954599686665856" target="_blank" rel=""><span class="item-feed">生活</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_61e3d96fa76c45bf90dd954eacdbb753_img_png" alt="新氧和美团的医美战争"></a><a class="item-info clearfloat" href="/p/954599686665856" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">新氧和美团的医美战争</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">盒饭财经</span><span class="bar-time"><i class="icon"></i>22分钟前</span></div></a></div></div><div class="item-wrapper"><a class="home-ad-flow-banner" href="https://adx.36kr.com/api/ad/click?sign=f153480867d33c589ff42424e548e7aa&amp;param.redirectUrl=aHR0cHM6Ly8zNmtyLmNvbS9wLzk0NTI4MjEzMDYwMzY1Nw&amp;param.adsdk=BaR66bmpFDwpNdSBGMAYtTCEdV4oNJ2seDhEYaZqxffGYSBSdlJjvJd1_G9UcXX8GF22Q5TXyHTXSzsyREynyg" sensors_operate_type="click" sensors_position_id="804" sensors_media_content_id="BaR66bmpFDwpNdSBGMAYtTCEdV4oNJ2seDhEYaZqxffGYSBSdlJjvJd1_G9UcXX8GF22Q5TXyHTXSzsyREynyg" target="_blank" rel="noopener noreferrer nofollow" data-id="804"><span class="flag">商业策划</span><img class="" src="https://img.36krcdn.com/20201103/v2_1904c4eff13b4f45bc6caac6991e9267_img_png" alt="36氪"></a></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/945069476408198" target="_blank" rel=""><span class="item-feed">推荐</span><img class="scaleBig" src="https://img.36krcdn.com/20201029/v2_c2a085109f9f4b71b4999178606e8c3d_img_jpg?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="公司与行研 | 中国经济冠绝全球，复苏真能如预期那样吗？"></a><a class="item-info clearfloat" href="/p/945069476408198" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">公司与行研 | 中国经济冠绝全球，复苏真能如预期那样吗？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">丁卯</span><span class="bar-time"><i class="icon"></i>26分钟前</span></div></a></div></div><div class="item-wrapper"><a href="https://adx.36kr.com/api/ad/click?sign=44c1dfb77e8794ad1c93f5304bbb5a55&amp;param.redirectUrl=aHR0cHM6Ly8zNmtyLmNvbS9wLzk1MDgwNDc2MTMyNDQyMA&amp;param.adsdk=epJIObvgeAapJmaVbtH7gwVeJveQYLs_caoEG7OwhKBMBahqWvmKyiZjWZP1tNQpZ71YlLUuuEug8sIMAbrJXA" sensors_operate_type="click" sensors_position_id="806" sensors_media_content_id="epJIObvgeAapJmaVbtH7gwVeJveQYLs_caoEG7OwhKBMBahqWvmKyiZjWZP1tNQpZ71YlLUuuEug8sIMAbrJXA" class="home-ad-flow-information" target="_blank" rel="noopener noreferrer nofollow" data-id="806"><div class="pic"><span class="flag">商业视角</span><img class="" src="https://img.36krcdn.com/20201103/v2_d2801dd393394ada965dd32829c8abe7_img_jpg" alt="36氪"></div><div class="info"><div class="title weight-bold">融资首发 | 资本押注云原生数据库，偶数完成B轮融资</div></div></a></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954593674574213" target="_blank" rel=""><span class="item-feed">生活</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_ea37dac46b5e4378afd2b4e00da0761b_img_jpg?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="网易严选“退出”双十一？真不想赚钱还是满满套路？"></a><a class="item-info clearfloat" href="/p/954593674574213" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">网易严选“退出”双十一？真不想赚钱还是满满套路？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">江瀚视野</span><span class="bar-time"><i class="icon"></i>26分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954593740831111" target="_blank" rel=""><span class="item-feed">生活</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_235ba47011504c4fb6e5f9be265d497a_img_000?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="茶颜悦色为什么蜗居长沙？"></a><a class="item-info clearfloat" href="/p/954593740831111" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">茶颜悦色为什么蜗居长沙？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">豹变</span><span class="bar-time"><i class="icon"></i>27分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954610716178818" target="_blank" rel=""><span class="item-feed">科技</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_5501e48ee04e4de88bf7bcf84f7933d0_img_000?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="自如难「自如」"></a><a class="item-info clearfloat" href="/p/954610716178818" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">自如难「自如」</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">36氪的朋友们</span><span class="bar-time"><i class="icon"></i>38分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954579931018886" target="_blank" rel=""><span class="item-feed">生活</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_6fc5de70e2654f7aa08a5a6e848235c4_img_jpg?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="剧本杀市场现状：从暴利生意到“围墙”"></a><a class="item-info clearfloat" href="/p/954579931018886" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">剧本杀市场现状：从暴利生意到“围墙”</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">新文化商业</span><span class="bar-time"><i class="icon"></i>38分钟前</span></div></a></div></div><div class="item-wrapper"><a class="home-ad-flow-banner" href="https://adx.36kr.com/api/ad/click?sign=6f9710a7c32f745ccbee0449527481a5&amp;param.redirectUrl=aHR0cHM6Ly8zNmtyLmNvbS9saXZlLzk0MjIzMjU2ODY1MDYyOQ&amp;param.adsdk=zpBi31oFGOGCnjFY44cuP56rqYo8KYUBJyC1Jv4yDvltiHGuc0ActDVq1VWvhtMDJP5FGvIGV5q-lryY69oA5Q" sensors_operate_type="click" sensors_position_id="815" sensors_media_content_id="zpBi31oFGOGCnjFY44cuP56rqYo8KYUBJyC1Jv4yDvltiHGuc0ActDVq1VWvhtMDJP5FGvIGV5q-lryY69oA5Q" target="_blank" rel="noopener noreferrer nofollow" data-id="815"><span class="flag">商业策划</span><img class="" src="https://img.36krcdn.com/20201103/v2_850159f6560b40aab44df5bf25ca44f8_img_jpg" alt="36氪"></a></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954580134114953" target="_blank" rel=""><span class="item-feed">生活</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_0621b3cff4654eb7abdfe078506fa96f_img_jpg?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="完美日记启动上市：宁愿亏损也要打广告，被称为美妆界“瑞幸”"></a><a class="item-info clearfloat" href="/p/954580134114953" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">完美日记启动上市：宁愿亏损也要打广告，被称为美妆界“瑞幸”</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">雷达财经</span><span class="bar-time"><i class="icon"></i>39分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954593608432000" target="_blank" rel=""><span class="item-feed">生活</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_7101a66ee8e34b3ab9c4bcd0b27acb04_img_png?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="相邻的两家餐厅，为何命运却截然不同？"></a><a class="item-info clearfloat" href="/p/954593608432000" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">相邻的两家餐厅，为何命运却截然不同？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">红餐网</span><span class="bar-time"><i class="icon"></i>40分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954579960624772" target="_blank" rel=""><span class="item-feed">推荐</span><img class="scaleBig" src="https://img.36krcdn.com/20201105/v2_885e04896f4b4b3192f2b52f269331ef_img_png?x-oss-process=image/resize,m_mfit,w_600,h_400,limit_0/crop,w_600,h_400,g_center" alt="变革前奏：燃油车的“诺基亚时刻”"></a><a class="item-info clearfloat" href="/p/954579960624772" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">变革前奏：燃油车的“诺基亚时刻”</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">远川研究所</span><span class="bar-time"><i class="icon"></i>53分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954579799357061" target="_blank" rel=""><span class="item-feed">推荐</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954579799357061" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">有机硅3个月涨30%，化妆品要涨价了？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">青眼</span><span class="bar-time"><i class="icon"></i>59分钟前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954579860961672" target="_blank" rel=""><span class="item-feed">科技</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954579860961672" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">30米跌落无损，为什么有些手机就那么耐摔？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">三易生活</span><span class="bar-time"><i class="icon"></i>1小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954570473617792" target="_blank" rel=""><span class="item-feed">科技</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954570473617792" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">朋友圈置顶、红包跳转、算法推荐…最新视频号玩法解读</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">36氪的朋友们</span><span class="bar-time"><i class="icon"></i>1小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954566644529540" target="_blank" rel=""><span class="item-feed">科技</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954566644529540" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">豆瓣回应“短评机制修改”：3年前就已调整，防水军控评</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">剁椒娱投</span><span class="bar-time"><i class="icon"></i>1小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954564631411081" target="_blank" rel=""><span class="item-feed">生活</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954564631411081" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">复制Netflix的成功，爱优腾还需踏出这一步</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">毒眸</span><span class="bar-time"><i class="icon"></i>1小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954098572670592" target="_blank" rel=""><span class="item-feed">推荐</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954098572670592" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">8点1氪丨证监会：暂缓蚂蚁集团上市是对投资者和市场负责任的做法；上海迪士尼大部分恢复运营；小鹏汽车大涨23.32%</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">杨亚飞</span><span class="bar-time"><i class="icon"></i>1小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954529111291522" target="_blank" rel=""><span class="item-feed">生活</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954529111291522" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">iPhone 12打游戏，不如千元安卓机？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">雷科技</span><span class="bar-time"><i class="icon"></i>1小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/954526446844296" target="_blank" rel=""><span class="item-feed">科技</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/954526446844296" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">iPhone 13用回指纹识别，刘海屏拜拜？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">雷科技</span><span class="bar-time"><i class="icon"></i>2小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/953567918520708" target="_blank" rel=""><span class="item-feed">推荐</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/953567918520708" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">创投日报 |「玩物得志」完成8000万美元C轮融资；「小睿智洗」获数千万元pre-A轮融资 ；以及今天值得关注的早期项目</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">胡静怡</span><span class="bar-time"><i class="icon"></i>9小时前</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/953829199657344" target="_blank" rel=""><span class="item-feed">会员</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/953829199657344" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">三星将向小米、OV等供应智能手机芯片，包括5纳米芯片</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">互联网新风口</span><span class="bar-time"><i class="icon"></i>昨天</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/953820976608901" target="_blank" rel=""><span class="item-feed">会员</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/953820976608901" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">滴滴押注社区团购，明确“投入不设上限，要做市场第一”</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">互联网新风口</span><span class="bar-time"><i class="icon"></i>昨天</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/953913052313219" target="_blank" rel=""><span class="item-feed">汽车</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/953913052313219" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">比亚迪10月汽车销量4.77万辆，纯电动车占比超3成</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">未来汽车日报</span><span class="bar-time"><i class="icon"></i>昨天</span></div></a></div></div><div class="item-wrapper"><div class="article-item"><a class="item-pic " href="/p/953222947829382" target="_blank" rel=""><span class="item-feed">生活</span><div class="kr-default-img-no-logo scaleBig"></div></a><a class="item-info clearfloat" href="/p/953222947829382" target="_blank" rel="noopener noreferrer"><span class="item-title weight-bold ellipsis-2">当跟风附和成为仪式，多少不合群的人选择了退出群聊？</span><div class="item-bar"><span class="bar-author" rel="noopener noreferrer">全媒派</span><span class="bar-time"><i class="icon"></i>昨天</span></div></a></div></div></div>"""
# item_list = re.findall(r'<span class="item-title weight-bold ellipsis-2">(.*?)</span>', html)
item_list = re.findall(r'<a class="item-info clearfloat" href="([^"]*).*?ellipsis-2">(.*?)</span>.*?</a>', html)

print("提取到的新闻个数:", len(item_list))

for temp in item_list:
    # print(temp)
    # print()
    # print("https://36kr.com" + temp[0], temp[1])
    print(url + temp[0], temp[1])
